<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <title>已登录</title>

    <style>html, body{height:95%;}body{background: #0f3854;background: -webkit-radial-gradient(center ellipse, #0a2e38 0%, #000000 70%);background: radial-gradient(ellipse at center, #0a2e38 0%, #000000 70%);background-size: 100%;}p{margin:0;padding:0;}#clock{font-family: 'Share Tech Mono', monospace;color: #ffffff;text-align: center;position: absolute;left: 50%;top: 50%;-webkit-transform: translate(-50%, -50%);transform: translate(-50%, -50%);color: #daf6ff;}#clock .time{letter-spacing: 0.05em;font-size: 19px;padding: 5px 0;}#clock .date{letter-spacing:0.1em;font-size:15px;}#clock .text{letter-spacing: 0.1em;font-size:12px;padding:20px 0 0;}</style>
</head>
<body>
<div id="clock">
    <p class="date">...已登录，<span style="color: red" id="count">10</span>秒后跳转首页...</p>
    <p class="time"><a style="color: #ffffff;text-decoration:none" href="{{session('guard')=="system"?route('system.index'):route('admin.index')}}">点此直接跳转到首页...</a></p>
</div>
<script>
    //10秒倒计时
    var t = 10;
    var time = document.getElementById("count");
    var guard = "{{session('guard')}}";

    function fun() {
        t--;
        time.innerHTML = t;
        if(t <= 0) {
            time.innerHTML = "正在跳转";
            location.href = guard=="system"?"{{route('system.index')}}":"{{route('admin.index')}}";
            clearInterval(inter);
        }
    }
    var inter = setInterval("fun()", 1000);
</script>

</body>
</html>
